package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.PageParam;
import com.itheima.reggie.entity.User;

import java.util.List;

public interface OrderService {
    
    /**
     * 添加订单
     * @param orders
     * @param user
     * @return
     */
    int add(Orders orders , User user );

    /**
     * 查询订单记录
     */
    Page<OrdersDto> findList(PageParam param);


}
